package net.springmvc11_12.resolver;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.ModelAndView;

//@ControllerAdvice
//public class GlobalExceptionHandler {
//    @ExceptionHandler({Exception.class})
//    public ModelAndView exception(Exception ex) {
//        ModelAndView mav = new ModelAndView();
//        mav.setViewName("error");
//        mav.addObject("message", ex.getMessage());
//        return mav;
//    }
//}
